import time

import pyautogui as gui

img_weiping = r"img_1.png"
img_100 = r"img_2.png"
img_submit = r"img_3.png"

position_weiping = gui.locateCenterOnScreen(img_weiping)
position_100 = gui.locateCenterOnScreen(img_100)

position_weiping = gui.locateCenterOnScreen(img_weiping)
gui.click(position_weiping)
time.sleep(1)
for i in range(0, 10):
    position_100 = gui.locateCenterOnScreen(img_100)
    gui.click(position_100)
    # time.sleep(0.2)
gui.press("pagedown")
time.sleep(1)
position_submit = gui.locateCenterOnScreen(img_submit)
gui.click(position_submit)
